<!DOCTYPE html>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"> 
    
    <div id="fb-root"></div>
    <script>
        window.fbAsyncInit = function() {
            FB.init({
                appId : '134554569987473', // App ID
                channelURL : '//www.suaparte.org', // Channel File
                status : true, // check login status
                cookie : true, // enable cookies to allow the server to access the session
                oauth : true, // enable OAuth 2.0
                xfbml : true
            // parse XFBML
            });
        
            // Additional initialization code here
        };
        
        // Load the SDK Asynchronously
        (function(d) {
            var js, id = 'facebook-jssdk';
            if (d.getElementById(id)) {
                return;
            }
            js = d.createElement('script');
            js.id = id;
            js.async = true;
            js.src = "//connect.facebook.net/en_US/all.js";
            d.getElementsByTagName('head')[0].appendChild(js);
        }(document));
    </script>

</ui:composition>		